package sicau.practice.community.Mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import sicau.practice.community.dto.Tiezi;

import java.util.List;

@Mapper
public interface TieziMapper {
    @Insert("insert into tiezi (title,description,tag) values (#{title},#{description},#{tag})")
    void create(Tiezi tiezi);

    @Select("select * from tiezi")
    List<Tiezi> list();
}
